package com.zja.www.controller;

import com.zja.www.entity.Schedule;
import com.zja.www.service.*;



public class AdminController extends BaseController {

    private final AdminService adminService;

    public AdminController(AdminService adminService,
                           UserService userService,
                           DoctorService doctorService,
                           MedicalRecordService medicalRecordService) {
        super(userService, doctorService,  medicalRecordService);
        this.adminService = adminService;
    }

    /**
     * 管理员登录方法
     * @param username 用户名
     * @param password 密码
     * @return 登录是否成功
     */
    public boolean login(String username, String password) {
        return adminService.login(username, password);
    }

    public boolean addSchedule(Schedule schedule) {
        return adminService.addSchedule(schedule);
    }

    public boolean verifyUser(int userId) {
        return adminService.verifyUser(userId);
    }
}
